﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Roton2.TextModeEmulation
{
    public interface IRenderer
    {
        /// <summary>
        /// Returns true if the Renderer can have AnsiChar data read.
        /// </summary>
        bool CanRead { get; }

        /// <summary>
        /// Returns true if AnsiChar data can be written to the Renderer.
        /// </summary>
        bool CanWrite { get; }

        /// <summary>
        /// Read AnsiChar data at a specified location from the Renderer.
        /// </summary>
        AnsiChar Read(int x, int y);

        /// <summary>
        /// Write AnsiChar data at a specified location to the Renderer.
        /// </summary>
        void Write(int x, int y, AnsiChar ac);
    }
}
